package cn.tedu.admin.content.dao.persist.mapper.repository;

import cn.tedu.admin.content.pojo.param.CategoryAddParam;
import cn.tedu.admin.content.pojo.po.CategoryPO;

import java.util.List;

/**
 * 数据提供层
 */
public interface CategoryRepository {
    List<CategoryPO> list();

    Integer countByName(String name);

    Integer addNew(CategoryAddParam categoryAddParam);

    CategoryPO getCategoryByParentId(Long parentId);
}
